package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ApiModel(description = "专利实体类")
@TableName(value = "patent")
public class Patent  extends BaseEntity {

    @ApiModelProperty(value = "id")
    @TableField(value = "id")
    private Long id;

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "专利名称")
    @TableField(value = "patent_name")
    private String patentName;

    @ApiModelProperty(value = "专利状态")
    @TableField(value = "patent_status")
    private Byte patentStatus;

    @ApiModelProperty(value = "专利类型")
    @TableField(value = "patent_type")
    private Byte patentType;

    @ApiModelProperty(value = "注册号码")
    @TableField(value = "registration_number")
    private String registrationNumber;

    @ApiModelProperty(value = "专利有效时间")
    @TableField(value = "patent_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate patentStartTime;

    @ApiModelProperty(value = "专利创建时间")
    @TableField(value = "create_patent_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate createPatentTime;

}